<?php use_helper('jQuery','Url'); ?>
<div class="ui-widget-shadow top">
    Acceder
</div>
    <div class="main">
    <span class="menu-buttons fg-toolbar ui-widget-header ui-corner-all ui-helper-clearfix">
            <span class="fg-buttonset ui-helper-clearfix">
               <?php include_partial('boton', array("url"=>"opac/contactar","nombre"=>"Contacto","clase_boton"=>"ui-icon-mail-closed")) ?>
               <?php include_partial('boton', array("url"=>"opac/help","nombre"=>"Ayuda","clase_boton"=>"ui-icon-help")) ?>

            </span>

        
        
    </span>
    <div class="content ui-widget-content">
        <div class="web-search">
            <div class="search-text-box">
                <?php echo jq_form_remote_tag(array(
                                'update'    =>  'resultado_consulta',
                                'url'       =>  '@consultar',
                                'condition' =>  '$("#palabras").val()!=""',
                                'success'   =>  'loadTable(tabla,data);',
                                'method'    =>  'get',

                                ))
                            ?>
                          <label>

                              <input type="text" name="palabras" size="40" maxlength="50" >
                              <input type="hidden" id="biblioteca" name="biblioteca" value="1">
                              <input type="hidden" id="categoria" name="categoria" value="libre">
                          </label>
                          <input type="submit" value="Buscar" style="cursor: pointer;" class="fg-button ui-state-default ui-corner-all" >
                          <input type="submit" value="Avanzado" style="cursor: pointer;" class="fg-button ui-state-default ui-corner-all" >

            </form>
        </div>
            <div class="libraries">
                <?php include_partial("bibliotecas", array("bibliotecas"=>$bibliotecas)) ?>
            </div>
        <div class="search-buttons">
            <?php echo jq_ajax_window_button_to_remote("Mostrar",
                  array(
                      "url"         =>  "opac/mostrarEjemplares",
                      "script"      =>  'true',
                      "method"      =>  "get",
                      "condition"   =>  "fnVerSelFichas(tabla)",
                      "with"        =>  "fnSelFichas(tabla)",
                      "width"    =>  "800",
                      "height"    =>  "600"
                                

                                ), array ("class"=>"fg-button ui-state-default ui-corner-all","style"=>"cursor: pointer;")
            ) ?>

            <input type="submit" value="Limpiar" style="cursor: pointer;" class="fg-button ui-state-default ui-corner-all" >

            <?php echo jq_ajax_window_button_to_remote("Mostrar",
                  array(
                      "url"         =>  "opac/mostrarEjemplares",
                      "script"      =>  'true',
                      "method"      =>  "get",
                      "condition"   =>  "fnVerSelFichas(tabla)",
                      "with"        =>  "fnSelFichas(tabla)",
                      "width"    =>  "800",
                      "height"    =>  "600"


                                ), array ("class"=>"fg-button ui-state-default ui-corner-all","style"=>"cursor: pointer;")
            ) ?>
            </div>
        </div>
        <div id="tabla" class="tabla ui-helper-hidden">
            <?php include_partial('tabla') ?>
        </div>
    </div>

    <div id="ajax-windows"></div>
    <div id="messages" class="dataTables_processing"  ></div>

</div>